/*
*  Copyright (c) 2001 Sun Microsystems, Inc.  All rights
*  reserved.
*
*  Redistribution and use in source and binary forms, with or without
*  modification, are permitted provided that the following conditions
*  are met:
*
*  1. Redistributions of source code must retain the above copyright
*  notice, this list of conditions and the following disclaimer.
*
*  2. Redistributions in binary form must reproduce the above copyright
*  notice, this list of conditions and the following disclaimer in
*  the documentation and/or other materials provided with the
*  distribution.
*
*  3. The end-user documentation included with the redistribution,
*  if any, must include the following acknowledgment:
*  "This product includes software developed by the
*  Sun Microsystems, Inc. for Project JXTA."
*  Alternately, this acknowledgment may appear in the software itself,
*  if and wherever such third-party acknowledgments normally appear.
*
*  4. The names "Sun", "Sun Microsystems, Inc.", "JXTA" and "Project JXTA"
*  must not be used to endorse or promote products derived from this
*  software without prior written permission. For written
*  permission, please contact Project JXTA at http://www.jxta.org.
*
*  5. Products derived from this software may not be called "JXTA",
*  nor may "JXTA" appear in their name, without prior written
*  permission of Sun.
*
*  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
*  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
*  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
*  DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
*  ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
*  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
*  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
*  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
*  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
*  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
*  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
*  SUCH DAMAGE.
*  ====================================================================
*
*  This software consists of voluntary contributions made by many
*  individuals on behalf of Project JXTA.  For more
*  information on Project JXTA, please see
*  <http://www.jxta.org/>.
*
*  This license is based on the BSD license adopted by the Apache Foundation.
*
*  $Id: UIConstants.java,v 1.7 2005/08/12 07:50:49 gonzo Exp $
*/

package net.jxta.myjxta.ui;

import javax.swing.text.DefaultEditorKit;

/**
 *
 * @version $Id: UIConstants.java,v 1.7 2005/08/12 07:50:49 gonzo Exp $
 *
 * @author james todd [gonzo at jxta dot org]
 */
public class UIConstants {
    
    public static final String ACTION_SAVE_AS = "action.saveAs";
    public static final String ACTION_CLEAR = "action.clear";
    public static final String ACTION_UNDO = "action.undo";
    public static final String ACTION_REDO = "action.redo";
    public static final String ACTION_BOLD = "action.bold";
    public static final String ACTION_ITALIC = "action.italic";
    public static final String ACTION_UNDERLINE = "action.underline";
    public static final String ACTION_CUT = "action.clipboard.cut";
    public static final String ACTION_COPY = "action.clipboard.copy";
    public static final String ACTION_PASTE = "action.clipboard.paste";
    public static final String ACTION_LEFT = "action.justify.left";
    public static final String ACTION_RIGHT = "action.justify.right";
    public static final String ACTION_CENTER = "action.justify.center";
    public static final String ACTION_SEND = "action.dialog.send";
    public static final String ACTION_SELECT_ALL = "action.selectAll";
    public static final String ACTION_EDITOR = "action.editor";

    public static final String FILE_SEPARATOR = "/";
    public static final String IMAGE_BASE = FILE_SEPARATOR +
        "toolbarButtonGraphics" + FILE_SEPARATOR;
    public static final String IMAGE_GENERAL = IMAGE_BASE + "general" +
        FILE_SEPARATOR;
    public static final String IMAGE_TEXT = IMAGE_BASE + "text" +
        FILE_SEPARATOR;
    public static final int IMAGE_SIZE_SMALL = 16;
    public static final String MIME_GIF = ".gif";

    public static final String SAVE_AS = "dialog-save-as";
    public static final String SAVE_AS_IMAGE = IMAGE_GENERAL + "SaveAs";
    public static final String SAVE_AS_MNEMONIC = "S";
    public static final String CLEAR = "dialog-clear";
    public static final String CLEAR_MNEMONIC = "C";
    public static final String UNDO = "undo";
    public static final String UNDO_MNEMONIC = "U";
    public static final String UNDO_IMAGE = IMAGE_GENERAL + "Undo";
    public static final String REDO = "redo";
    public static final String REDO_MNEMONIC = "R";
    public static final String REDO_IMAGE = IMAGE_GENERAL + "Redo";
    public static final String CUT = DefaultEditorKit.cutAction;
    public static final String CUT_MNEMONIC = "C";
    public static final String CUT_IMAGE = IMAGE_GENERAL + "Cut";
    public static final String COPY = DefaultEditorKit.copyAction;
    public static final String COPY_MNEMONIC = "P";
    public static final String COPY_IMAGE = IMAGE_GENERAL + "Copy";
    public static final String PASTE = DefaultEditorKit.pasteAction;
    public static final String PASTE_MNEMONIC = "T";
    public static final String PASTE_IMAGE = IMAGE_GENERAL + "Paste";
    public static final String BOLD = "font-bold";
    public static final String BOLD_MNEMONIC = "B";
    public static final String BOLD_IMAGE = IMAGE_TEXT + "Bold";
    public static final String ITALIC = "font-italic";
    public static final String ITALIC_MNEMONIC = "I";
    public static final String ITALIC_IMAGE = IMAGE_TEXT + "Italic";
    public static final String UNDERLINE = "font-underline";
    public static final String UNDERLINE_MNEMONIC = "U";
    public static final String UNDERLINE_IMAGE = IMAGE_TEXT + "Underline";
    public static final String LEFT = "left-justify";
    public static final String LEFT_MNEMONIC = "L";
    public static final String LEFT_IMAGE = IMAGE_TEXT + "AlignLeft";
    public static final String CENTER = "center-justify";
    public static final String CENTER_MNEMONIC = "N";
    public static final String CENTER_IMAGE = IMAGE_TEXT + "AlignCenter";
    public static final String RIGHT = "right-justify";
    public static final String RIGHT_MNEMONIC = "R";
    public static final String RIGHT_IMAGE = IMAGE_TEXT + "AlignRight";
    public static final String PARAGRAPH = "paragraph-align";
    public static final String SELECT_ALL = "select-all";
    public static final String SELECT_ALL_MNEMONIC = "A";
    public static final String EDITOR = "editor";
    public static final String EDITOR_MNEMONIC = "E";
    public static final String EDITOR_IMAGE = IMAGE_GENERAL + "Edit";
    public static final String BREAK = "insert-break";
    
    public static final String MIME_HTML = "text/html";
    public static final String MIME_PLAIN = "text/plain";
    
    public static final String PROTOCOL_FILE = "file";
    public static final String PROTOCOL_HTTP = "http";
    
    public static final String URI_DELIMITER = "://";
    public static final String ANCHOR_PREFIX = "<a href=\"";
    public static final String ANCHOR_PREFIX_CLOSE = "\">";
    public static final String ANCHOR_POSTFIX = "</a>";
    public static final String IMAGE_PREFIX = "<img src=\"";
    public static final String IMAGE_POSTFIX = "\">";
    public static final String PRE_PREFIX = "<pre>";
    public static final String PRE_POSTFIX = "</pre>";
    public static final String DOT = ".";
    
    public static final String IMAGE_TIFF = DOT + "tiff";
    public static final String IMAGE_TIF = DOT + "tif";
    public static final String IMAGE_JPEG = DOT + "jpeg";
    public static final String IMAGE_JPG = DOT + "jpg";
    public static final String IMAGE_GIF = DOT + "gif";
    public static final String IMAGE_PNG = DOT + "png";
    
    public static final int TREE_WIDTH = 200;

    public static final int SEARCH_WIDTH = 300;
    public static final int SEARCH_HEIGHT = 175;
    
    public static final int SHARE_WIDTH = TREE_WIDTH;
    public static final int SHARE_HEIGHT = 175;
}
